import { defineStore } from 'pinia';
import { PageState } from './types';
import useAppStore from '../app';

export const usePageStore = defineStore('page', {
  state: () => ({
    // 定义状态
    loading: false
  }),
  actions: {
    // 定义操作
    setLoading(value: boolean) {
      this.loading = value;
    }
  }
});

export default usePageStore;
